<template>
  <div>
    <!-- 一级路由占位符 -->
    <router-view></router-view>
    <!-- 底部 -->
    <!--  v-show="$route.meta.showFooter 控制底部是否显示 -->
    <elefooter v-show="$route.meta.showFooter"></elefooter>
  </div>
</template>

<script>
import elefooter from "@/components/elefooter";
export default {
  name: "app",
  // 注册组件
  components: { elefooter },
};
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
}
</style>